<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        .margin {
            width: 100px;
            height: 100px;
            margin: 20px;
            background: orange;
        }

        .padding {
            width: 100px;
            height: 100px;
            padding: 20px;
            background: orangered;
        }

        .parent {
            width: 100%;
            width: 50%;
            height: 100px;
            font-size: 12px;
        }

        .small-font {
            transform: scale(0.8);
            -webkit-transform: scale(0.8);
        }

        .p1 {
            width: 50%;
            height: 50px;
            background: palegreen;
            color: white;
        }
        .p1 {
            width: 50vw;
            height: 50px;
            background: blue;
            color: white;
        }
    </style>
</head>

<body>
    <h2>1.padding与margin</h2>
    <div class="margin">
        margin
    </div>
    <div class="padding">
        padding
    </div>
    <h2>2.vm与百分比</h2>
    <div class="parent"></div>
    <h2>3.行内与块级元素</h2>
    <div class="parent2"></div>
    <h2>4.如何让谷歌浏览器支持小字体</h2>
    <div class="parent"></div>
</body>

</html>